﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Halk.Spider.Win
{
    /// <summary>
    /// 发布配置文件
    /// </summary>
    public class PublishConfig
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int ID { get; set; }

        public string AppKey { get; set; }

        /// <summary>
        /// 微博标志 0,sina;1,qq
        /// </summary>
        public string MicroblogFlag { get; set; }

        /// <summary>
        /// API接口
        /// </summary>
        public string PublishUrl { get; set; }

        /// <summary>
        /// 用户密码组合列表
        /// </summary>
        public List<UserPass> UserPasss { get; set; }

        /// <summary>
        /// 间隔时间,毫秒
        /// </summary>
        public int Interval { get; set; }
    }

    public class UserPass
    {
        /// <summary>
        /// 用户名是否启用
        /// </summary>
        public bool IsActive { get; set; }

        public string Username { get; set; }

        public string Password { get; set; }
    }
}
